//////////////관리자 모드 멤버 //////////////

function adminMemberSide(){
		$.ajax({
			url: 'admin.spring?action=adminMemberSide',
			method:'post',
			success:function(html) {
				$("#adminSidebar").html(html);
			},            
		});		
	}

	function adminMemberFire() {
		$.ajax({
			url: 'admin.spring?action=adminMemberFire',
			data:$("#adminMember").serialize(),
			method:'post',
			success:function(html) {
				$(".parsingPage").html(html);
			},            
		});
		
	}
	
	function adminMemberFireCancel(){
		$.ajax({
			url: 'admin.spring?action=adminMemberFireCancel',
			data:$("#adminMember").serialize(),
			method:'post',
			success:function(html) {
				$(".parsingPage").html(html);
			},            
		});
		
	}
	
	
	function adminMemberSearch(pageNo){		
		$.ajax({
			url: 'admin.spring?action=adminmemberSearch&currentPage=' + pageNo,
			method:'post',
			success:function(html) {
				$(".parsingPage").html(html);
			},            
		});		
	}

	function adminMemberLevel(pageNo){
		$.ajax({
			url: 'admin.spring?action=adminMemberLevel&currentPage=' + pageNo,
			method:'post',
			success:function(html) {
				$(".parsingPage").html(html);
			},            
		});	

	}
	
	function adminAdminLevel() {
		$.ajax({
			url: 'admin.spring?action=adminAdminLevel',
			data:$("#adminMemberLevel").serialize(),
			method:'post',
			success:function(html) {
				$(".parsingPage").html(html);
			},            
		});	
	}
	
	function adminTrainerLevel() {
		$.ajax({
			url: 'admin.spring?action=adminTrainerLevel',
			data:$("#adminMemberLevel").serialize(),
			method:'post',
			success:function(html) {
				$(".parsingPage").html(html);
			},            
		});	
	}
	
	function adminGeneralMemberLevel() {
		$.ajax({
			url: 'admin.spring?action=adminGeneralMemberLevel',
			data:$("#adminMemberLevel").serialize(),
			method:'post',
			success:function(html) {
				$(".parsingPage").html(html);
			},            
		});	
	}
	
	function adminFreshMemberLevel() {
		$.ajax({
			url: 'admin.spring?action=adminFreshMemberLevel',
			data:$("#adminMemberLevel").serialize(),
			method:'post',
			success:function(html) {
				$(".parsingPage").html(html);
			},            
		});	
	}
//////////////관리자 모드 운동 //////////////
function adminExerciseSide(){		
	$.ajax({
		url: 'admin.spring?action=adminExerciseSide',
		method:'post',
		success:function(html) {
			$("#adminSidebar").html(html);
		},            
	});		
}

function adminExercisePreAdd() {
	$.ajax({
		url: 'admin.spring?action=adminExercisePreAdd',
		method: 'post',

		success:function(html) {
			$(".parsingPage").html(html);
		},            
	});
}

function adminExerciseAdd(){
	$.ajax({
		url: 'admin.spring?',
		method:'post',
		data:$("#ExerciseaddForm").serialize() + '&action=adminExerciseAdd',
		success:function(html) {
			$(".parsingPage").html(html);
		}            
	});

}

function adminExerciseList(pageNo){

	$.ajax({
		url: 'admin.spring?action=adminExerciseList&currentPage='+ pageNo,
		method:'post',
		success:function(html) {
			$(".parsingPage").html(html);
		},            
	});
}

function adminExercisePreModify(exerciseNo){
	$.ajax({
        url: 'admin.spring?action=adminExercisePreModify' + '&exerciseNo=' + exerciseNo,
        method:'post',
        success:function(html) {
                $(".parsingPage").html(html);
        },            
    });
	
}

function adminExerciseModify(){
	$.ajax({
        url: 'admin.spring',
        method:'post',
        data: $("#exercisemodifyForm").serialize() + '&action=adminExerciseModify',
        success:function(html) {
                $(".parsingPage").html(html);
        },            
    });
	
}

function adminExerciseRemove(){
	if (confirm('지우실 겁니까?')) {
	$.ajax({
		 url: 'admin.spring?action=adminExerciseRemove',
		 method: 'post',
		 data:$("#adminexerciseList").serialize(),
		 success:function(html) {
                $(".parsingPage").html(html);
            
            },
	});
  }
}

function adminExerciseRemoveCancel(){
	if (confirm('지우실 겁니까?')) {
	$.ajax({
		 url: 'admin.spring?action=adminExerciseRemoveCancel',
		 method: 'post',
		 data:$("#adminexerciseList").serialize(),
		 success:function(html) {
                $(".parsingPage").html(html);
            
            },
	});
  }
}

function adminExercisePicture(){
	var text = $(":input:checkbox[name=exercisecheck]:checked").val();
	var url = "admin.spring?action=adminExercisePicture&exerciseNo="+text;
	$("#adminexerciseList").serialize();
	$("#divAdminExerciseDialogFile").dialog("open");
	$("#exerciseFrame").attr("src", url);
}

/////////////////관리자 모드 음식///////////	
function adminFoodSide(){		
	$.ajax({
		url: 'admin.spring?action=adminFoodSide',
		method:'post',
		success:function(html) {
			$("#adminSidebar").html(html);
		},            
	});		
}

function adminFoodList(pageNo){

	$.ajax({
		url: 'admin.spring?action=adminFoodList&currentPage=' + pageNo,
		method:'post',
		success:function(html) {
			$(".parsingPage").html(html);
		},            
	});

}


function adminFoodPreAdd(){

	$.ajax({
		url: 'admin.spring?action=adminFoodPreAdd',
		method:'post',
		success:function(html) {
			$(".parsingPage").html(html);
		},            
	});
}
function adminFoodAdd(){
	$.ajax({
		url: 'admin.spring',
		method:'post',
		data:$("#FoodaddForm").serialize() + '&action=adminFoodAdd',
		success:function(html) {
			$(".parsingPage").html(html);
		}            
	});

}

function adminFoodModify(foodNo){
	$.ajax({
		url: 'admin.spring?action=adminFoodModify' + '&foodNo=' + foodNo,
		method:'post',
		success:function(html) {
			$(".parsingPage").html(html);
		},            
	});

}

function adminFoodRemove(){
	$.ajax({
		url: 'admin.spring?action=adminFoodRemove',
		method:'post',
		data:$("#adminfoodList").serialize(),
		success:function(html) {
			$(".parsingPage").html(html);
		},            
	});
	
}

function adminFoodRemoveCancel(){
	$.ajax({
		url: 'admin.spring?action=adminFoodRemoveCancel',
		method:'post',
		data:$("#adminfoodList").serialize(),
		success:function(html) {
			$(".parsingPage").html(html);
		},            
	});
	
}

function adminFoodPicture(){
	var text = $(":input:checkbox[name=foodcheck]:checked").val();
	var url = "admin.spring?action=adminFoodPicture&foodNo="+text;
	$("#adminfoodList").serialize();
	$("#divAdminFoodDialogFile").dialog("open");
	$("#foodFrame").attr("src", url);
}


/////////////////관리자 모드 그룹///////////	

function adminGroupSide(){		
	$.ajax({
		url: 'admin.spring?action=adminGroupSide',
		method:'post',
		success:function(html) {
			$("#adminSidebar").html(html);
		},            
	});		
}

function adminLocationSide(){		
	$.ajax({
		url: 'admin.spring?action=adminLocationSide',
		method:'post',
		success:function(html) {
			$("#adminSidebar").html(html);
		},            
	});		
}

function adminlocationAdd(){
	$.ajax({
		url: 'admin.spring?action=adminLocationAdd',
		method:'post',
		success:function(html) {
			$(".parsingPage").html(html);
		},            
	});
}

function adminlocationMap(){
	$.ajax({
		url: 'admin.spring?action=adminLocationMap',
		method:'post',
		success:function(html){ 
			$(".parsingPage").html(html);
			initialize();
		},
	});
}


function adminHealthcareSide(){		
	$.ajax({
		url: 'admin.spring?action=adminHealthcareSide',
		method:'post',
		success:function(html) {
			$("#adminSidebar").html(html);
		},            
	});		
}




function adminBoardSide(){		
	$.ajax({
		url: 'admin.spring?action=adminBoardSide',
		method:'post',
		success:function(html) {
			$("#adminSidebar").html(html);
		},            
	});		
}

function adminBoardPreAdd() {
	$.ajax({
		url: 'admin.spring?action=adminBoardPreAdd',
		method: 'post',

		success:function(html) {
			$(".parsingPage").html(html);
		},            
	});
}

function adminBoardList(){
	$.ajax({
		url: 'admin.spring?action=adminBoardList',
		method: 'post',
		success:function(html) {
			$(".parsingPage").html(html);
		},            
	});
}

function adminBoardPreModify(boardNo){
	$.ajax({
		url: 'admin.spring?action=adminBoardPreModify' + '&boardNo=' + boardNo,
		method:'post',
		success:function(html) {
			$(".parsingPage").html(html);
		},            
	});

}

function adminBoardModify(){
	$.ajax({
		url: 'admin.spring',
		method:'post',
		data: $("#boardmodifyForm").serialize() + '&action=adminBoardModify',
		success:function(html) {
			$(".parsingPage").html(html);
		},            
	});

}

function adminBoardRemove(boardNo){
	if (confirm('지우실 겁니까?')) {
		$.ajax({

			url: 'admin.spring?action=adminBoardRemove' + '&boardNo=' + boardNo,
			method: 'post',
			success:function(html) {
				$(".parsingPage").html(html);

			},
		});
	}
}

function adminboardAdd() {

	$.ajax({
		url:'admin.spring',
		method:'post',
		data: $("#boardaddForm").serialize() + '&action=adminBoardAdd',
		success:function(html) {
			$(".parsingPage").html(html);
		}

	});

}